package com.streambolics.servlet;

import javax.servlet.http.HttpServletResponse;

import com.streambolics.std.HtmlBuilder;

/**
 * An Html Builder bound to a servlet response.
 * 
 * @author Sauron
 * 
 */

public class ServletHtmlBuilder extends HtmlBuilder
{
    private final HttpServletResponse _Response;

    public ServletHtmlBuilder(HttpServletResponse aResponse)
    {
        _Response = aResponse;
    }

    @Override
    public String escapeUrl (String aURL)
    {
        return _Response.encodeURL (aURL);
    }

}
